<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改学生信息')" />
    <th:block th:include="include :: datetimepicker-css" />
    <link href="../static/css/superviseClass.css" th:href="@{/css/superviseClass.css}" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-student-edit" th:object="${xzkStudent}">
        <input name="stuid" th:field="*{stuid}" type="hidden" readonly id="stuid">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">学员姓名：</label>
            <div class="col-sm-8">
                <input name="stuname" th:field="*{stuname}" class="form-control" type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">督促次数：</label>
            <div class="col-sm-8">
                <input name="stuphone" th:field="*{superviseclassnum}" class="form-control" type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">最后一次促课时间：</label>
            <div class="col-sm-8">
                <input name="gradeid" th:value="${#dates.format(xzkStudent.superviseclasslasttime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">促课的结果：</label>
            <div class="col-sm-8">
                <textarea   class="form-control" name="promotion"   th:text="*{promotion}" id="promotion">
                </textarea>

            </div>
        </div>
        <div class="superviseClassButton">
            <!--\''+${stuid}+'\',\''+${promotion}+'\'-->
            <button th:if="*{colorType==1}"  type="button" class="superviseClass superviseClassGreen" th:onclick="'javascript:superviseClassClick()'" >促课</button>
            <button th:if="*{colorType==2}"  type="button" class="superviseClass superviseClassYellow" th:onclick="'javascript:superviseClassClick()'" >促课</button>
            <button th:if="*{colorType==3}"  type="button" class="superviseClass superviseClassRed" th:onclick="'javascript:superviseClassClick()'">促课</button>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">

    var prefix = ctx + "student/student";
    $("#form-student-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-student-edit').serialize());
        }
    }

    $("input[name='graduatetime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>

</body><script src="../static/ruoyi/student.js" th:src="@{/ruoyi/student.js}"></script>
</html>